package com.zjm.behavioral.state;

/**
 * 状态模式
 */
public class ClientTest {
    public static void main(String[] args) {
        RaffleActivity raffleActivity = new RaffleActivity(1);

        for (int i = 0; i < 300; i++) {
            System.out.println("-------第" + (i + 1) + "次抽奖---------");
            raffleActivity.deductMoney();
            raffleActivity.raffle(); //抽奖
        }
    }
}
